﻿using hCommand;
using Persistence;

namespace Controller {
    public class Wcs2WmsTask : AbsWcs2WmsTask
    {
        public Wcs2WmsTask()
        {
            time = 500;
        }
        public override bool isFinsh(CoreTaskParam param)
        {
            if (param.status == 80)
            {
                if (param.cDes == 99 || param.cStn == 99) {
                    return false;
                }

                return param.src != param.cDes;
            }

            return false;
        }
        public override bool commit(CoreTaskParam param)
        {
            return WMSTransactionFacade.syncWcsReult(param.id, param.cDes);

        }
        public override bool getEmply(CoreTaskParam param)
        {
            return true;

        }

        public override bool working(CoreTaskParam param)
        {
            return base.working(param);
        }

        public override bool putFull(CoreTaskParam param)
        {

            return true;
        }







    }
}
